package org.jb.coinche.client.gui.card.impl;

import org.jb.coinche.client.gui.card.ScorePanel;

import com.extjs.gxt.ui.client.widget.Html;

public class ScoreLine extends Html implements ScorePanel {

	private String prefix;
	
	public ScoreLine( String prefix ) {
		this.prefix = prefix;
		
		setHtml( "<b>" + prefix + "</b><br>" );
	}
	


	/*
	 * (non-Javadoc)
	 * @see org.jb.coinche.client.gui.card.ScorePanel#setScore(int, int)
	 */
	@Override
	public void setScore(int scoreTeam1, int scoreTeam2) {
		setHtml( "<b>" + prefix + "</b> T1:" + scoreTeam1 + " T2:" + scoreTeam2 + "<br>" );
	}
}
